import request from '@/utils/request'

// 查询内部车辆列表
export function listTcCar(query) {
  return request({
    url: '/energy/tcCar/list',
    method: 'get',
    params: query
  })
}

// 查询内部车辆详细
export function getTcCar(id) {
  return request({
    url: '/energy/tcCar/' + id,
    method: 'get'
  })
}

// 新增内部车辆
export function addTcCar(data) {
  return request({
    url: '/energy/tcCar',
    method: 'post',
    data: data
  })
}

// 修改内部车辆
export function updateTcCar(data) {
  return request({
    url: '/energy/tcCar',
    method: 'put',
    data: data
  })
}

// 删除内部车辆
export function delTcCar(id) {
  return request({
    url: '/energy/tcCar/' + id,
    method: 'delete'
  })
}

export function syncTcCar(id) {
  return request({
    url: '/energy/tcCar/syncData/' + id,
    method: 'get'
  })
}
